package org.xg.study.boot.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author CMG
 * @version 1.0
 * @description
 * @cLassName Person
 * @date 2021/10/9 10:42
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Component
public class Person1 {
    @Value("${person.lastName}")
    private String lastName;

    @Value("${person.age}")
    private Integer age;

    @Value("${person.boss}")
    private Boolean boss;

    @Value("${person.birth}")
    private Date birth;

    private Map<String,Object> maps;

    private List<Object> lists;

    private Dog dog;
}
